<?php  if ( ! defined('BASEPATH')) exit('No direct script access allowed');

class Holiday_model extends CI_Model
{
	
	public function __construct()
	{
		parent::__construct();

	}
	
	function get_all_holidays()
	{
		return $this->db->get('holidays')->result();		
	}
	
	function create_holiday($insert)
	{
		$this->db->insert('holidays',$insert);
	}
	
	function delete($delete_id)
	{
		$this->db->delete('holidays', array('id' => $delete_id)); 	}
	
}
